package librarymanager

class Author {
    
    static hasMany = [books: Book]
    
    String name    
    
    static constraints = {
        name(nullable: false, blank: false, size: 3..50)
    }
    
    String toString() {
        return "${name}"
    }
}
